import request from '@/utils/request'

// 查询服务分类参数列表
export function listAttribute(query) {
  return request({
    url: '/business/attribute/list',
    method: 'get',
    params: query
  })
}
// 查询服务分类参数列表
export function listselectAttribute(query) {
  return request({
    url: '/business/attribute/selectlist',
    method: 'get',
    params: query
  })
}
// 查询服务分类参数列表
export function listHotAttribute(query) {
  return request({
    url: '/business/attribute/hotlist',
    method: 'get',
    params: query
  })
}

// 查询服务分类参数详细
export function getAttribute(id) {
  return request({
    url: '/business/attribute/' + id,
    method: 'get'
  })
}

// 新增服务分类参数
export function addAttribute(data) {
  return request({
    url: '/business/attribute',
    method: 'post',
    data: data
  })
}

// 修改服务分类参数
export function updateAttribute(data) {
  return request({
    url: '/business/attribute',
    method: 'put',
    data: data
  })
}

// 删除服务分类参数
export function delAttribute(id) {
  return request({
    url: '/business/attribute/' + id,
    method: 'delete'
  })
}

// 导出服务分类参数
export function exportAttribute(query) {
  return request({
    url: '/business/attribute/export',
    method: 'get',
    params: query
  })
}